package com.quwan.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author quan
 * @date 2021-12-08 21:19
 */
@Getter
@AllArgsConstructor
public enum ApplyTypeEnum {

    DISPATCH_ORDER(0, "派单订单 申请接单");
    Integer type;

    String tips;

    public static ApplyTypeEnum getByType(Integer type) {
        for (ApplyTypeEnum value : values()) {
            if (value.getType().equals(type)) {
                return value;
            }
        }
        return null;
    }


}
